﻿using System;
namespace Lawyer.Model
{
	/// <summary>
	/// ArchiveInfo:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class ArchiveInfo
	{
		public ArchiveInfo()
		{}
		#region Model
		private string _archiveid;
		private string _title;
		private string _lawyerid;
		private string _customid;
		private int? _isagency;
		private string _agencyid;
		private decimal? _agencyrate;
		private int? _status;
		private DateTime? _enddate;
		private DateTime? _createddate;
		private string _createdby;
		private string _checkedby;
		private DateTime? _checkeddate;
		private DateTime? _updateddate;
		private string _updatedby;
		/// <summary>
		/// 
		/// </summary>
		public string ArchiveID
		{
			set{ _archiveid=value;}
			get{return _archiveid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Title
		{
			set{ _title=value;}
			get{return _title;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string LawyerID
		{
			set{ _lawyerid=value;}
			get{return _lawyerid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CustomID
		{
			set{ _customid=value;}
			get{return _customid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? IsAgency
		{
			set{ _isagency=value;}
			get{return _isagency;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string AgencyID
		{
			set{ _agencyid=value;}
			get{return _agencyid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? AgencyRate
		{
			set{ _agencyrate=value;}
			get{return _agencyrate;}
		}
		/// <summary>
		/// 0=>提交，审核中
        /// 1=>审核通过，通知律师接受
        /// 2=>律师接受，正式进行中
        /// 3=>结案，待审核结束
        /// 4=>审核结案
		/// </summary>
		public int? Status
		{
			set{ _status=value;}
			get{return _status;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? EndDate
		{
			set{ _enddate=value;}
			get{return _enddate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreatedDate
		{
			set{ _createddate=value;}
			get{return _createddate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreatedBy
		{
			set{ _createdby=value;}
			get{return _createdby;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CheckedBy
		{
			set{ _checkedby=value;}
			get{return _checkedby;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CheckedDate
		{
			set{ _checkeddate=value;}
			get{return _checkeddate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? UpdatedDate
		{
			set{ _updateddate=value;}
			get{return _updateddate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UpdatedBy
		{
			set{ _updatedby=value;}
			get{return _updatedby;}
		}
		#endregion Model


        #region Not Exists in Database
        private string _ShowStatus;

        public string ShowStatus
        {
            get { return _ShowStatus; }
            set { _ShowStatus = value; }
        }

        private string _CustomName;

        public string CustomName
        {
            get { return _CustomName; }
            set { _CustomName = value; }
        }

        private string _AgencyName;

        public string AgencyName
        {
            get { return _AgencyName; }
            set { _AgencyName = value; }
        }

        private string _LawyerName;

        public string LawyerName
        {
            get { return _LawyerName; }
            set { _LawyerName = value; }
        }

        private double _MoneyCount;

        public double MoneyCount
        {
            get { return _MoneyCount; }
            set { _MoneyCount = value; }
        }
        #endregion
    }

    public enum ArchiveInfoStatuc
    {
        /// <summary>
        /// 提交，审核中
        /// </summary>
        Pending=10,

        /// <summary>
        /// 提交被拒绝
        /// </summary>
        Reject = 15,

        /// <summary>
        /// 已审核，待律师接受
        /// </summary>
        Checked = 20,

        /// <summary>
        /// 律师接收，正常进行中
        /// </summary>
        Running = 30,


        /// <summary>
        /// 提交结束审核
        /// </summary>
        OverPending = 40,

        /// <summary>
        /// 正式结束
        /// </summary>
        Over = 50,

    }
}

